import cluster from 'cluster'
import os from 'os'

cluster.setupMaster(
  {
    exec: "./node/demo/worker"
  }
)
for (let i = 0; i < os.cpus().length; i++) {
  cluster.fork()
}
